package com.colin.service.impl;

import com.colin.mapper.ProductAndManchineRelationMapper;
import com.colin.pojo.ChanPianGongXuTimeTabile;
import com.colin.service.ProductAndManchineRelationSercice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductAndManchineRelationServiceImpl implements ProductAndManchineRelationSercice {
    @Autowired
    ProductAndManchineRelationMapper productAndManchineRelationMapper;
    @Override
    public List<ChanPianGongXuTimeTabile> selelctAll () {
        return productAndManchineRelationMapper.selectALL();
    }

    @Override
    public void deleteALL () {
        productAndManchineRelationMapper.deleteALL();
    }

    @Override
    public void insert (ChanPianGongXuTimeTabile chanPianGongXuTimeTabile) {
        productAndManchineRelationMapper.insrt(chanPianGongXuTimeTabile);
    }

    @Override
    public void deleteone (Integer id) {
        productAndManchineRelationMapper.deleteone(id);
    }

}
